home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac-Source 1994 July
/
Mac-Source_July_1994.iso
/
Updates, etc.
/
PG PRO⁄PG Lite Demos
/
PG PRO Demo
/
PG PRO Demo.rsrc
/
FLTR_1000_ICON
< prev
next >
Wrap
Text File
|
1993-09-10
|
2KB
|
56 lines
'===============================================================================
'= Copyright 1992 Staz™ Software, Inc. =
'= All rights reserved =
'= "ICON.FLTR" from PG:PRO =
'===============================================================================
INCLUDE FILE _aplIncl
COMPILE 0,_MacsbugLabels_strResource_caseInsensitive'set by PG:PRO
GLOBALS "PG PRO.GLBL"'standard
END GLOBALS'end of global DIMs
GOTO"Icon Filter"'ALWAYS branch around FNs
'
'===============================================================================
LOCAL FN DIError
'=============================================================================
CALL FRAMERECT(gObjT)
CALL INSETRECT(gObjT,1,1)
TEXT 1,9,0,0
t$ = "ID"+STR$(gObjUser1)
DEF CBOX(gObjT,t$)
END FN
'===============================================================================
LOCAL FN DIdrawIcon
'=============================================================================
IconHndl& = FN GETICON(gObjUser1)'look for ICON
LONG IF IconHndl&'got it?
CALL PLOTICON(gObjT,IconHndl&)'draw the icon
XELSE'didn't get it?
FN DIError'show the error
END IF
END FN
'===============================================================================
LOCAL FN DIdrawcicn
'=============================================================================
LONG IF SYSTEM(11)>1
cicnHndl& = FN GETCICON(gObjUser1)'look for cicn
LONG IF cicnHndl&'found cicn?
CALL PLOTCICON(gObjT,cicnHndl&)'draw it
CALL DISPOSCICON(cicnHndl&)'& dispose of structures
XELSE'couldn't get cicn res?
FN DIdrawIcon'try a regular ICON
END IF
XELSE
FN DIdrawIcon'try a regular ICON
END IF
END FN
'===============================================================================
"Icon Filter"
LONG IF gAction = _otherAction
LONG IF gSubAction = _otherUserUpdate
LONG IF gObjUserTp& = _"ICON"
FN DIdrawcicn
END IF
END IF
END IF
'===============================================================================